package com.qfjy.homework.cgr;

public class Factory {
    public Games get(String Type){
        if(Type == null){
            return null;
        }
        if(Type.equalsIgnoreCase("CSGO")){
            return new Csgo();
        }  else if(Type.equalsIgnoreCase("LOL")){
            return new Lol();
        }
        return null;
    }
}
